import Cookies from 'js-cookie'

export const TokenKey = 'dvhealth-token'
export const SidebarStatusKey = 'sidebar-status'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token: string) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getSidebarStatus() {
  return Cookies.get(SidebarStatusKey) || 'opened'
}

export function setSidebarStatus(status: string) {
  return Cookies.set(SidebarStatusKey, status)
}